package singleton.demo3;

public class test {
    public static void main(String[] args) {
//        YaFactory yaFactory = YaFactory.getInstance();
//        YaFactory yaFactory2 = YaFactory.getInstance();
//        YaFactory yaFactory3= YaFactory.getInstance();
//
//        System.out.println(yaFactory2);
//        System.out.println(yaFactory3);
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        Thread thread1 = new Thread(myRunnable);
        Thread thread2 = new Thread(myRunnable);

        thread2.start();

        thread1.start();
        thread.start();

    }
}
